﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Telerik.Web.UI;

namespace Sistema_de_Taller.SDT_UI.Vehicle
{
    public partial class vehicle_View : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void RadGrid1_UpdateCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            GridEditableItem edititem = e.Item as GridEditableItem;
            UInt32 VehicleID = Convert.ToUInt32(edititem["Vehicle_ID"].Text);
            String query = string.Format("~/SDT_UI/Vehicle/DetailsVehicle.aspx?Id={0} ", VehicleID);
            Response.Redirect(query);
        }
    }
}